{include file="layout/layout" /}
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>商户管理 - 添加商户</h3>
                <h5>商城系统添加商户</h5>
            </div>
        </div>
    </div>
    <form action="shopAdd?act=a" method='post' enctype="multipart/form-data">
    <div class="ncap-form-default">
        <dl class="row">
            <dt class="tit">
                <label>店铺名称</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_name" type="text" required>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>手机号</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_mobile" type="text" required>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>店主姓名</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_true_name" type="text" required>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>公司名称</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_company" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>公司法人</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_legal_person" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>营业执照编号</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_bus_license" type="text" required>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label class="code_url">营业执照</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="image" type="file">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户电话</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_phone" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>所属区域</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户地址</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_address" type="text">
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>商户分类</label>
            </dt>
            <dd class="opt">
                <select name="sp_tyid" id="" required>
                    <option value="0">—— 请选择 ——</option>
                    {foreach $cates as $k=>$v}
                    <option value="{$v.ty_id}">{$v.ty_name}</option>
                    {/foreach}
                </select>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>代理商</label>
            </dt>
            <dd class="opt">
                <select name="sp_agem_id" id="" required>
                    <option value="0">—— 请选择 ——</option>
                    {foreach $agents as $k=>$v}
                    <option value="{$v.agem_id}">{$v.agem_principals}</option>
                    {/foreach}
                </select>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>状态</label>
            </dt>
            <dd class="opt">
                <input value="1" name="sp_status" id="gender" type="radio">
                <label for="gender">正常</label>
                <input value="2" name="sp_status" id="gender" type="radio">
                <label for="gender">禁用</label>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>APPID</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_appid" type="text" required>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>OpenID</label>
            </dt>
            <dd class="opt">
                <input class="input-txt valid" name="sp_openid" type="text" required>
            </dd>
        </dl>
        <dl class="row">
            <dt class="tit">
                <label>营业时间</label>
            </dt>
            <dd class="opt">
                <input type="time" name="sp_start_time"> ~ <input type="time" name="sp_end_time">
            </dd>
        </dl>
        <div class="bot"><button id="button" style="width:96px;height:35px;background: #4FC0E8;border-radius:5px;line-height:35px;text-align: center;color:#fff;border: 0;font-size: 15px;">确认提交</button></div>
    </div> 
    </form>
</div>
</body></html>